package optimizers.ganeatgeneric;

import java.io.Serializable;

public class Node implements Cloneable, Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public static int SIMPLE_SEQUENCE = 1;
	public static int INHIBITING_SEQUENCE = 2;

	public String name;
	public double parameter;
	public double concentration;
	public int type;
	public String inhibfrom = "";
	public String inhibto = "";

	public Node(String name, double parameter, double concentration, int type) {
		this.name = name;
		this.parameter = parameter;
		this.type = type;
		this.concentration = concentration;
	}

	public Node(String name, double parameter, double concentration, int type, String from, String to) {
		this.name = name;
		this.parameter = parameter;
		this.type = type;
		this.concentration = concentration;
		this.inhibfrom = from;
		this.inhibto = to;
	}
	
	@Override
	public Node clone() throws CloneNotSupportedException {
		return new Node(this.name, this.parameter, this.concentration, this.type, this.inhibfrom, this.inhibto);
	}
}
